import './assets/main.css'
import './assets/pet-mode.css'

import { createApp } from 'vue'
import App from './App.vue'

// Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// i18n 国际化
import i18n from './i18n.js'

const app = createApp(App)

// 使用 Element Plus
app.use(ElementPlus)

// 使用 i18n
app.use(i18n)

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')
